import {Routes, RouterModule} from "@angular/router";
import {NgModule} from "@angular/core";

const routes: Routes = [{
  path: '',
  redirectTo: 'contact',
  pathMatch: 'full'
}, {
  path: 'crisis',
  loadChildren: 'app/crisis/crisis.module#CrisisModule'
}, {
  path: 'heroes',
  loadChildren: 'app/components/heroes/heroes.module#HeroesModule'
}]

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule {

}
